﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PublishNews.Entities;

namespace PublishNews.Repositories
{
    public interface INewsRepository : IRepository<News>
    {
        Task<List<News>> GetNewsByCategoryAndLocation(Guid categoryId, Guid locationId);
        Task<List<News>> GetNewsByUserId(string userId);
        Task<List<News>> GetNewsByUserId(string userId, Guid categoryId, Guid locationId);
        Task<List<News>> GetNewsByCategoryAndLocation(Guid categoryId, Guid locationId, int pageIndex, int pageSize);
    }
}
